// pages/map/map.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    latitude:30.54861171591554,
    longitude:104.06855000132751,
    markers: [{
      iconPath: '/images/定位.png',
      id: 0,
      latitude:30.54861171591554,
    longitude:104.06855000132751,
      width: 30,
      height: 30
    }]

  },
  markertap: function() {
    wx.openLocation({
      latitude: this.data.latitude,
      longitude: this.data.longitude,
      name: '成都希尔顿酒店',
      address: '成都市 天府新区 吉泰一路'
    })
  }
  
})